﻿public class BuffChaos : BuffBase
{
    public BuffChaos() : base()
    {
        Type = BuffType.Chaos;
    }

    public override void OnCreate()
    {
        Owner.atk_fix -= 999;
        Owner.fov_fix -= 999;
        Owner.ap = 0;
        Owner.can_atk_flag -= 1;
        Owner.can_move_flag -= 1;
        Owner.can_detect_flag -= 1;
        Owner.can_build_flag -= 1;
    }

    public override void OnDispose()
    {
        Owner.atk_fix += 999;
        Owner.fov_fix += 999;
        Owner.can_atk_flag += 1;
        Owner.can_move_flag += 1;
        Owner.can_detect_flag += 1;
        Owner.can_build_flag += 1;
    }
    public override void OnEndPhase()
    {
        Owner.RemoveBuff(this);
    }
    public override string ToString()
    {
        return "混乱：陷入混乱，无法行动";
    }
}